package com.cl.entity;

import com.cl.entity.common.DBObject;

import javax.persistence.*;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by chengxj on 2015/6/23.
 */
@Entity
@Table(name = "U_ORG")
public class UOrg implements Serializable, DBObject {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "ORGID")
    private String orgid;

    @Column(name = "VERSION")
    private Integer version;

  
    
    @Column(name = "ORGNAME")
    private String orgname;

    @Column(name = "PARENTORGID")
    private String parentorgid;

    @Column(name = "DOCID")
    private Integer docid;

    @Column(name = "ORD")
    private Integer ord;

    @Column(name = "STATUS")
    private Integer status;

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

  
    
    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getParentorgid() {
        return parentorgid;
    }

    public void setParentorgid(String parentorgid) {
        this.parentorgid = parentorgid;
    }

    public Integer getDocid() {
        return docid;
    }

    public void setDocid(Integer docid) {
        this.docid = docid;
    }

    public Integer getOrd() {
        return ord;
    }

    public void setOrd(Integer ord) {
        this.ord = ord;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public Object getPrimaryId() {
        return this.orgid;
    }

    @Override
    public void setDcCreate(Date dcCreate) {

    }

    @Override
    public Date getDcCreate() {
        return null;
    }

    @Override
    public void setLastUpdate(Date lastUpdate) {

    }

    @Override
    public Date getLastUpdate() {
        return null;
    }

    @Override
    public void setDcEditor0(String dcEditor0) {

    }

    @Override
    public String getDcEditor0() {
        return null;
    }
}
